package com.heima.search.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author feng js
 */
@Component
public class AssociateWordsClearRedis {
    @Autowired
    private StringRedisTemplate redisTemplate;
    @XxlJob("delApAssociateWords")
    public ReturnT autoDelRedis(String parm) {
        redisTemplate.delete("Associate_words");

        return ReturnT.SUCCESS;
    }
}
